package edu.sctu.wulixia.month4and5.day20150529;

/**
 * Created by user05 on 2015/5/29.
 */
public class String_Equals {
    private String name;
    private String sex;
    private int age;

    public  void String_Equals(String name , String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }
    public void isTeacher_Info() {
        String_Equals[] teacher_Info = new String_Equals[3];
        String_Equals teacher0 = new String_Equals();
        String_Equals teacher1 = new String_Equals();
        String_Equals teacher2 = new String_Equals();

        teacher_Info[0] = teacher0;
        teacher_Info[1] = teacher1;
        teacher_Info[2] = teacher2;

        teacher_Info[0].String_Equals("张三","男",24);
        teacher_Info[1].String_Equals("严雪","女",26);
        teacher_Info[2].String_Equals("刘健","男",36);
    }

    public static void main(String[] args) {
         String_Equals abc =new String_Equals();
        String_Equals[] shuzu = new String_Equals[3];
        System.out.println(shuzu[0].name);
        for(int i = 0 ; i < shuzu.length; i++){
        if(shuzu[i].sex.equals("男")) {
            System.out.println(abc.getName() + abc.getAge());
        }
        }
    }


}
